<#if tempAttachs?exists && tempAttachs?size gt 0>
<#assign contextPath = request.contextPath/>
<div  class="sList" style="margin-bottom:20px;">
<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
<tr>
		<th class="sTh">附件名称</th>
		<th class="sTh">图片</th>
		<th class="sTh">操作</th>
	</tr>
<#list tempAttachs as a>
	<tr class="<#if a_index%2==0>sRow1<#else>sRow2</#if>">
		<td class="sCell">
			
			<#if a.attachName?exists>
				<#if a.attachName?length gte 40>
					<#assign name=a.attachName?substring(0,40)+"..." />
				<#else>
					<#assign name=a.attachName />
				</#if>
			</#if>
			${name}
		</td>
		<td class="sCell" style="width:80px;" align="center">
			<a href="javascript:file.uploadImage('${a.guid}');" id="up${a.guid}" class="minibutton" style="width:70px;"><span>添加图片</span></a>
			<div id="ic${a.guid}" style="width:660px;">
		
			</div>
		</td>
		<script type="text/javascript">
			$(function(){
				loadImage('${a.guid}');
			});
		</script>
		<td class="sCell" style="width:80px;" align="center">
			<a class="sliverbutton" href="javascript:delAttach(${a.id});"><span>删除</span></a>
		</td>
	</tr>
</#list>
</table>
</div>
</#if>
